#ifndef QQ_COFIG
#define QQ_COFIG

#include <qicon.h>
#include <qhash.h>

#include <QxOrm.h>
#include <QxOrm_Impl.h>

class QQUser
{
	QX_REGISTER_FRIEND_CLASS(QQUser)
public:
	QString m_account;
	QString m_password;
	QString m_nickname;
	QString m_icon;
	QString m_friends;
	QString m_token;
};
QX_REGISTER_PRIMARY_KEY(QQUser, QString)
QX_REGISTER_HPP(QQUser, qx::trait::no_base_class_defined, 0)

class QQMessage
{
	QX_REGISTER_FRIEND_CLASS(QQMessage)
public:
	QString m_id;
	QString m_sender;
	QString m_receiver;
	QString m_content;
	QDateTime m_time;
};
QX_REGISTER_PRIMARY_KEY(QQMessage, QString)
QX_REGISTER_HPP(QQMessage, qx::trait::no_base_class_defined, 0)

#endif // !QQ_COFIG

